package com.java.simple.study.jvm.sugar;

/**
 * @author zhoujunlin
 * @date 2022/1/16
 * @desc 语法糖-switch
 **/
public class Demo8_6 {
    public static void main(String[] args) {

    }

    public static void chooseEnum(Sex sex) {
        switch (sex) {
            case MALE:
                System.out.println("hi boy");
                break;
            case FEMALE:
                System.out.println("hi baby");
                break;
            default:
                System.out.println("什么玩意？");
        }
    }


    public static void chooseString(String lang) {
        switch (lang) {
            case "java":
                System.out.println("hello java");
                break;
            /*case "go":
                System.out.println("hello go");
                break;
            case "ABCDEa123abc":
                System.out.println("ABCDEa123abc");
                break;
            case "ABCDFB123abc":
                System.out.println("ABCDFB123abc");
                break;
            default:
                break;*/

        }
    }


}
